package com.github.dice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.dice.entity.PlayerAndDiceMapping;

import javax.annotation.Nonnull;
import java.util.List;

public interface IPlayerAndDiceMappingService extends IService<PlayerAndDiceMapping> {

    List<PlayerAndDiceMapping> getPlayerAndDiceMappingListByRoom(String roomNumber);

    PlayerAndDiceMapping getPlayerAndDiceMappingListByRoomAndPlayer(String roomNumber, String playerName);

    void addPlayerAndDiceMapping(PlayerAndDiceMapping playerAndDiceMapping);

    void updatePlayerDice(PlayerAndDiceMapping playerAndDiceMapping);

    void delPlayerAndDiceMappingByRoom(@Nonnull String roomNumber);
}
